﻿@model IEnumerable<PhotoAlbums.Models.UserCatalog>

@{
    ViewBag.Title = "Index";
}

<h2>我的目录</h2>

<p>
    @Html.ActionLink("添加目录", "Add")
</p>
<table class="table">
    <tr>
        <th>
            名称
        </th>
        <th>
            简介
        </th>
        <th>
            更新时间
        </th>
        <th>
            创建时间
        </th>
        <th></th>
    </tr>

@foreach (var item in Model) {
    <tr>
        <td>
            @Html.DisplayFor(modelItem => item.Catalog.Name)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Catalog.Introduction)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Catalog.UpdateTime)
        </td>
        <td>
            @Html.DisplayFor(modelItem => item.Catalog.CreateTime)
        </td>
        <td>
            <a href="/Photo/Index?catalogId=@item.Catalog.Id">进入</a> |
            @Html.ActionLink("修改", "Edit", new { id=item.Catalog.Id }) |
            @Html.ActionLink("删除", "Delete", new { id=item.Catalog.Id })
        </td>
    </tr>
}

</table>
